package com.eric.common.net;

public class RemovePuncts {
		private static char[] RemoveWorker (String inputString) {
			char[] chars = inputString.toCharArray();
			char[] charsClean = new char[chars.length];
			
			int j = 0;
		    for(int i = 0; i < chars.length; i ++) {  
	            if((chars[i] >= 19968 && chars[i] <= 40869) 
	            		|| (chars[i] >= 97 && chars[i] <= 122) 
	            		|| (chars[i] >= 65 && chars[i] <= 90) 
	          		 ) {  
	            charsClean[j] = chars[i];
	            j++;
	            }
	        }
		    return charsClean;
		}
		
		public String Remove (String inputString) {
			return String.valueOf(RemoveWorker(inputString));
		}
}

